import { ref } from 'vue';

export default function usePage() {
    const currentPage = ref(1);
    const getCurrentPage = (currentPage) => {
        currentPage.value = currentPage;
    };
    const limit = ref(20);
    const getLimit = (limit) => {
        limit.value = limit;
        currentPage.value = 1;
    };

    return { currentPage, getCurrentPage, limit, getLimit };
}
